package bar.dark.lee.alarm.sound;

import android.os.Parcel;
import android.os.Parcelable;

public class SoundData implements Parcelable
{
	private String fileName;
	private String fileLocation;
	
	public SoundData(){};
	
	public SoundData(Parcel source)
	{
		this.fileName = source.readString();
		this.fileLocation = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getFileName());
		dest.writeString(this.getFileLocation());
	}
	
	public static Parcelable.Creator<SoundData> CREATOR = new Creator<SoundData>()
	{
		@Override
		public SoundData[] newArray(int size)
		{
			return new SoundData[size];
		}
		
		@Override
		public SoundData createFromParcel(Parcel source)
		{
			return new SoundData(source);
		}
	};
	
	public String getFileName()
	{
		return fileName;
	}
	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}
	public String getFileLocation()
	{
		return fileLocation;
	}
	public void setFileLocation(String fileLocation)
	{
		this.fileLocation = fileLocation;
	}
	
}
